
//alert('baidu');
$(function(){
    $.ajax({
        type:"post",
        url:"/ajax.php?ajax=table",
        data:{
            php:123,
            java:456
        },
        dataType:'json',
        success:function(mgs){
            //console.log(mgs);
            var data=mgs.data;
            var count=mgs.count;
            var html='';
            for (var i in data) {
                html+="<tr>";
                for (var d in data[i]) {
                    html+="<td>"+data[i][d]+"</td>"
                }
                html+='</tr>';
            }
            $('#tab').html(html);
            console.log(count);
        }
    });
});